<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div>
    <h2>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Asperiores nam officia, sed quasi repellat ipsam, consequuntur dolore pariatur debitis amet nostrum at repudiandae, odio ipsa eum impedit. Eveniet, aperiam eligendi.</h2>
  </div>
</body>
<script>
  requestIdleCallback((deadline)=>{
    console.log(deadline.timeRemaining());
  })
</script>
</html>
